#ifndef DATACOLLECT_H
#define DATACOLLECT_H

#include <QFile>
#include <QTimer>

class DataCollect : public QObject
{
    Q_OBJECT

public:
    explicit DataCollect(QObject *parent = nullptr);
    ~DataCollect();
    void dataToFiles();

public slots:
    void dataCollectionControl(const qint64 cmd);
    void dataCollection();

signals:
    void dataCollectFinish();
    void dataCollectInfo(QString);

private:
    QTimer *var_dataCollectTimer;
    QFile *var_dataFiles;
};

#endif // DATACOLLECT_H
